package org.yjc.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import org.yjc.entity.Eim;
@Repository
public interface EimRepository extends JpaRepository<Eim,Integer>,JpaSpecificationExecutor<Eim>{

	public Page<Eim> findByLesseeId(Pageable pageable, Integer lesseeId);

	public Page<Eim> findByLesseeId(Specification spec, Pageable pageable, Integer lesseeId);

}
